package com.bnivideo.ui.reflection

/**
 * Created by IntelliJ IDEA.
 * User: jiming
 * Date: 11-7-29
 * Time: 下午2:29
 * To change this template use File | Settings | File Templates.
 */

def content = '''

    // fields added by DAL - begin
    private boolean acknowledge;
    private Timestamp acknowledged_timestamp;
    // fields added by DAL - end

    private String id;
    private String detailMessage;
    private Timestamp timestamp;
    private String eventSource;
    private boolean clear;
    private boolean alert;

    // field from BNIEvent - begin
    /**
     * The event category, all valid values should be gotten from EventCategory ENUM by getting the item'name,
     * i.e. 'EventCategory.ApplicationStateEvent.name()' .
     */
    protected String eventCategory;
    /**
     * The event severity, it will impact the log level.
     */
    protected EventSeverity severity;
    /**
     * The summary text of the event.
     */
    protected String eventText;
    /**
     * The event type under the category, all valid values should be gotten from EventSubType ENUM by getting the item'name,
     * i.e. 'EventSubType.ApplicationAvailable.name()' .
     */
    protected String eventSubType;
    /**
     * Solution Type of the node that produce this event.
     */
    protected String solutionType;
    /**
     * Solution Name of the node that produce this event.
     */
    protected String solutionName;
    /**
     * Node Type of the node that produce this event.
     */
    protected String nodeType;
    /**
     * Node Name of the node that produce this event.
     */
    protected String nodeName;
    /**
     * Customize parameters.
     */
    protected Map<String, String> eventParams;

'''

def creator = new MockBeanCreator();
def splitter = new FieldSplitter();
creator.process("EventBean", splitter.split(content));

